﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="members-productpurchase.aspx.vb" Inherits="georgia_globaltp.members_productpurchase" %>
<%@ Register TagPrefix="header" TagName="georgia_header" Src="../../webControls/cn_georgia_header.ascx" %>
<%@ Register TagPrefix="foot" TagName="georgia_foot" Src="../../webControls/cn_georgia_foot.ascx" %>
<%@ Register TagPrefix="left" TagName="members_left" Src="../../webControls/cn_members_left.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>佐治亚国际贸易门户网站</title>
<link rel="stylesheet" type="text/css" href="../../assets/global_cn.css" />
<link rel="shortcut icon" type="image/x-icon" href="../../assets/GeorgiaOrgFavicon.ico"/>
<link rel="icon" type="image/x-icon" href="../../assets/GeorgiaOrgFavicon.ico"/>
<script src="../../assets/js/dojoroot/dojo/dojo.js" type="text/javascript" ></script>
<script src="../../assets/js/countries.js" type="text/javascript"></script>
<script type="text/javascript">
    function init() {
        var cc = dojo.byId('country');
        for (var i in countries) {
            if (dojo.byId('country_code').innerHTML.trim() == countries[i].id.trim())
                cc.innerHTML += '<option value="' + countries[i].id + '" selected>' + countries[i].zh + '</option>';
            else
                cc.innerHTML += '<option value="' + countries[i].id + '">' + countries[i].zh + '</option>';
        }
        if (dojo.byId('country_code').innerHTML.trim() != "") renderState(dojo.byId('state_code').innerHTML.trim());
    }
    function renderState(csid) {
        var ss = dojo.byId('state');
        ss.innerHTML = '<option> --省份-- </option>';
        dojo.byId('city').innerHTML = '<option> --市/区--</option>';
        var cid = dojo.byId('country').options[dojo.byId('country').selectedIndex].value;
        for (var i in countries) {
            if (cid.trim() == countries[i].id.trim()) {
                for (var j in countries[i].province) {
                    if (csid && csid == countries[i].province[j].id.trim())
                        ss.innerHTML += '<option value="' + countries[i].province[j].id + '" selected>' + countries[i].province[j].zh + '</option>';
                    else
                        ss.innerHTML += '<option value="' + countries[i].province[j].id + '">' + countries[i].province[j].zh + '</option>';
                }
            }
        }
        if (csid && csid != "") renderCity(dojo.byId('city_code').innerHTML.trim());
    }
    function renderCity(ccid) {
        var ss = dojo.byId('city');
        ss.innerHTML = '<option> --市/区--</option>';
        var cid = dojo.byId('country').options[dojo.byId('country').selectedIndex].value;
        var sid = dojo.byId('state').options[dojo.byId('state').selectedIndex].value;
        for (var i in countries) {
            if (cid.trim() == countries[i].id.trim()) {
                for (var j in countries[i].province) {
                    if (sid.trim() == countries[i].province[j].id.trim()) {
                        for (var k in countries[i].province[j].city) {
                            if (ccid && ccid == countries[i].province[j].city[k].id)
                                ss.innerHTML += '<option value="' + countries[i].province[j].city[k].id + '" selected>' + countries[i].province[j].city[k].zh + '</option>';
                            else
                                ss.innerHTML += '<option value="' + countries[i].province[j].city[k].id + '">' + countries[i].province[j].city[k].zh + '</option>';
                        }
                    }
                }
            }
        }
    }
</script>
</head>
<body onload="init()">
	<div id="outer">
    	<div id="main">
        	<header:georgia_header id="GeorgiaHeaderIndex" runat="server"></header:georgia_header>
        	<div id="content">
                <div id="content2">
    				<left:members_left id="membersLeft" runat="server"></left:members_left>
                    <div class="memberContent">
                    	<div style="padding-top:25px;">
                            <div class="productSubmiTitle">
                            	<span>产品采购</span>
                            </div>
                            <div class="productSubmitContent">
                               <form id="purchaseform" runat="server">
                            	<table width="90%" height="90%" style="padding:5px;">
                                	<tr >
                                    	<td  width="20%" align="right">求购标题：<img alt="required field" 
                                                src="../../images/required.gif" border="0"/></td>
                                        <td width="80%">
                                            <asp:TextBox id="c_purchase_title" size="40" runat="server"/>
                                            <span style="color:Red"><asp:Label ID="c_purchase_title_label" runat="server"></asp:Label></span>
                                        </td>
                                    </tr>
                                    <tr>
                                    	<td align="right">行业分类：</td>
                                        <td>
                                        	<asp:DropDownList ID="c_purchase_category" runat="server" Width="150px" Size="8" 
                                                AutoPostBack="True">
                                                <asp:ListItem Value=""> 请选择一级分类 </asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:DropDownList ID="c_purchase_subcategory" runat="server" Width="150px" Size="8">
                                                <asp:ListItem Value=""> 请选择二级分类 </asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                    	<td align="right">详细信息：</td>
                                        <td>
                                            <asp:TextBox TextMode="MultiLine" ID="c_description" runat="server" 
                                                Width="441px" Height="77px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                    	<td align="right">交货地点：</td>
                                        <td>
                                        	<select id="country" onchange="renderState()" name="country" >
                                                <option> ---所在国家---</option>
                                            </select>
                                            <select id="state" onchange="renderCity()" name="state">
                                                <option> --省份-- </option>
                                            </select>
                                            <select id="city" name="city">
                                                <option> --市/区--</option>
                                            </select>
                                            <span style="display:none;">
                                            <asp:Label runat="server" ID="country_code"></asp:Label>
                                            <asp:Label runat="server" ID="state_code"></asp:Label>
                                            <asp:Label runat="server" ID="city_code"></asp:Label>
                                            </span>
                                        </td>
                                    </tr>
                                    <tr>
                                    	<td></td>
                                        <td><asp:TextBox id="c_delplace" size="40" runat="server"/></td>
                                    </tr>
                                    <tr>
                                    	<td align="right">采购数量：</td>
                                        <td><asp:TextBox id="c_purchaseNum" size="40" runat="server"/></td>
                                    </tr>
                                    <tr>
                                    	<td align="right">期望价格：</td>
                                        <td><asp:TextBox id="c_expprice" size="40" runat="server"/></td>
                                    </tr>
                                    <tr>
                                    	<td align="right">有效期至：</td>
                                        <td><asp:TextBox id="c_validdate" size="40" runat="server"/></td>
                                    </tr>                                    
                                    <tr>
                                    	<td align="right">联系人：<img alt="required field" src="../../images/required.gif" 
                                                border="0"/></td>
                                        <td><asp:TextBox id="c_linkman" size="40" runat="server"/><input type="radio" checked="checked" name="gender" value="0"/>先生<input type="radio"  name="gender" value="1"/>女士
                                            <span style="color:Red"><asp:Label ID="c_linkman_label" runat="server"></asp:Label></span>
                                        </td>
                                    </tr>
                                    <tr>
                                    	<td></td>
                                        <td><input type="checkbox" checked="checked" /><a href="#">我已阅读了信息发布规则</a></td>
                                    </tr>
                                    <tr>
                                    	<td></td>
                                        <td><input type="submit" name="submitpurchase" value="确认提交"/><input type="reset" value="重置"/></td>
                                    </tr>
                                </table>
                                </form>
                          </div>
                      </div>
                  </div>
				</div>
            </div>
        </div> 
    </div>
     <foot:georgia_foot id="GeorgiaFootIndex" runat="server"></foot:georgia_foot>
</body>
</html>